package com.yaoxian.api.service.impl;

import com.yaoxian.api.domain.UserEntity;
import com.yaoxian.api.service.MemberService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
	* @author YaoXian
	* @title: MemberServiceImpl
	* @projectName 微服务项目架构
	* @description: TODO
	* @date 2020-07-02 13:55
	*/
@RestController
public class MemberServiceImpl implements MemberService {
		
		@Override
		@RequestMapping(path = "/getMember")
		public UserEntity getMember(@RequestParam("username") String username) {
				UserEntity userEntity = new UserEntity();
				userEntity.setUsername(username);
				userEntity.setAge(20);
				return userEntity;
		}
}
